Certain mathematical comparisons will always return the same value, and should simply not be made.

These comparisons will return either always true or always false depending on the kind of comparison:

Noncompliant Code Example

float f = 42.0f;
if (f <= double.MaxValue) { } // Noncompliant